export const hasPermission = {
    mounted(el, binding) {
      if (!binding.value) {
        el.style.display = 'none';
      }
    },
    updated(el, binding) {
      if (!binding.value) {
        el.style.display = 'none';
      } else {
        el.style.display = ''; // 显示元素
      }
    },
  };